<?php
namespace app\common\controller;
use think\Controller;
/**
 * 已废弃
 * @author zqs
 *
 */
class Api extends Controller
{
    /**
     * 淘宝联盟app_key
     */
    public $tk_appkey;
    /**
     * 淘宝联盟app_key
     */
    public $tk_appsecret;
    /**
     * 默认的pid
     */
    public $tk_pid;
    /**
     * 淘宝客site_id;
     */
    public $tk_siteid;
    /**
     * adzoneid
     */
    public $tk_adzoneid;
    /**
     * api初始化
     * {@inheritDoc}
     * @see \think\Controller::initialize()
     */
    public function initialize()
    {
        $db_config = get_db_config(true);
        //淘宝的
        $this->tk_appkey = $db_config['tk_cfg']['taobao']['appkey'];
        $this->tk_appsecret = $db_config['tk_cfg']['taobao']['appsecret'];
        $this->tk_pid = $db_config['tk_cfg']['taobao']['pid'];
        
    }
    
    
}































